DateTime = {}

DateTime.new = function()
   local year, month, day, hour, minute, second
   return {year = year, month = month, day = day, hour = hour, minute = minute, second = second}
end

DateTime.getCurrentTime = function()
   local dt = DateTime.new()
   dt.year = ds_system.getCurrentTime(0)
   dt.month = ds_system.getCurrentTime(1)
   dt.day = ds_system.getCurrentTime(2)
   dt.hour = ds_system.getCurrentTime(3)
   dt.minute = ds_system.getCurrentTime(4)
   dt.second = ds_system.getCurrentTime(5)
   return dt
end
